package com.yehun.annotation;

import com.yehun.config.MybatisDataSourceType;
import org.springframework.core.Ordered;
import org.springframework.core.annotation.Order;

import java.lang.annotation.*;

/**
 * 数据源切换
 * Created by Genius on 2017/5/3 0003.
 */
@Documented
@Order(Ordered.HIGHEST_PRECEDENCE)
@Target({ ElementType.METHOD, ElementType.TYPE })
@Retention(RetentionPolicy.RUNTIME)
public @interface DataSource {

    /**
     * 数据源类型
     */
    MybatisDataSourceType type();

}
